﻿<!-- *******************************************************************************\
| Copyright (c) 2011, Bashar Al-Rawi                                                |
| All rights reserved.                                                              |
|                                                                                   |
| Redistribution and use in source and binary forms, with or without                |
| modification, are permitted provided that the following conditions are met:       |
|    * Redistributions of source code must retain the above copyright               |
|      notice, this list of conditions and the following disclaimer.                |
|    * Redistributions in binary form must reproduce the above copyright            |
|      notice, this list of conditions and the following disclaimer in the          |
|      documentation and/or other materials provided with the distribution.         |
|    * Neither the name of the <organization> nor the                               |
|      names of its contributors may be used to endorse or promote products         |
|      derived from this software without specific prior written permission.        |
|                                                                                   |
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND   |
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED     |
| WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE            |
| DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY                |
| DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES        |
| (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;      |
| LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND       |
| ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT        |
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS     |
| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                      |
\*********************************************************************************-->
<UserControl x:Class="Arabic.Controls.Keyboard"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:b="clr-namespace:System.Windows.Media;assembly=System.Windows"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Width="{Binding Width}"
    Height="{Binding Height}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="340" d:DesignWidth="480" xmlns:my="clr-namespace:Arabic.Controls" Background="{x:Null}">
    <Canvas Name="canvas" Background="{Binding KeyboardBgBrush}">
        <Canvas.Resources>
            <Storyboard x:Name="KeyboardSlide">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)"
                    Storyboard.TargetName="keyboard"
                    Duration="0:0:0.3" AutoReverse="False">
                    <SplineDoubleKeyFrame x:Name="SlideKeyFrame" KeySpline="0.9,0.0 0.8,0.00" KeyTime="0:0:0.3"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Canvas.Resources>
        <StackPanel Name="stackPanel" Canvas.Top="0" Margin="0,0,0,0">
            <!--<StackPanel Height="81" Name="row0" Orientation="Horizontal" HorizontalAlignment="Center">
                <my:Key x:Name="key00" Width="48" Height="81" />
                <my:Key x:Name="key01" Width="48" Height="81" />
                <my:Key x:Name="key02" Width="48" Height="81" />
                <my:Key x:Name="key03" Width="48" Height="81" />
                <my:Key x:Name="key04" Width="48" Height="81" />
                <my:Key x:Name="key05" Width="48" Height="81" />
                <my:Key x:Name="key06" Width="48" Height="81" />
                <my:Key x:Name="key07" Width="48" Height="81" />
                <my:Key x:Name="key08" Width="48" Height="81" />
                <my:Key x:Name="key09" Width="48" Height="81" />
            </StackPanel>
            <StackPanel Height="81" Name="row1" Orientation="Horizontal" HorizontalAlignment="Center">
                <my:Key x:Name="key10" Width="48" Height="81" />
                <my:Key x:Name="key11" Width="48" Height="81" />
                <my:Key x:Name="key12" Width="48" Height="81" />
                <my:Key x:Name="key13" Width="48" Height="81" />
                <my:Key x:Name="key14" Width="48" Height="81" />
                <my:Key x:Name="key15" Width="48" Height="81" />
                <my:Key x:Name="key16" Width="48" Height="81" />
                <my:Key x:Name="key17" Width="48" Height="81" />
                <my:Key x:Name="key18" Width="48" Height="81" />
            </StackPanel>
            <StackPanel Height="81" Name="row2" Orientation="Horizontal" HorizontalAlignment="Center">
                <my:Key x:Name="key20" Width="48" Height="81" />
                <my:Key x:Name="key21" Width="48" Height="81" />
                <my:Key x:Name="key22" Width="48" Height="81" />
                <my:Key x:Name="key23" Width="48" Height="81" />
                <my:Key x:Name="key24" Width="48" Height="81" />
                <my:Key x:Name="key25" Width="48" Height="81" />
                <my:Key x:Name="key26" Width="48" Height="81" />
                <my:Key x:Name="key27" Width="48" Height="81" />
                <my:Key x:Name="key28" Width="48" Height="81" />
                <my:Key x:Name="key29" Width="48" Height="81" />
            </StackPanel>
            <StackPanel Height="81" Name="row3" Orientation="Horizontal" HorizontalAlignment="Center" DataContext="{Binding}">
                <my:Key x:Name="key30" Width="48" Height="81" />
                <my:Key x:Name="key31" Width="48" Height="81" />
                <my:Key x:Name="key32" Width="48" Height="81" />
                <my:Key x:Name="key33" Width="48" Height="81" />
                <my:Key x:Name="key34" Width="48" Height="81" />
                <my:Key x:Name="key35" Width="48" Height="81" />
                <my:Key x:Name="key36" Width="48" Height="81" />
                <my:Key x:Name="key37" Width="48" Height="81" />
                <my:Key x:Name="key38" Width="48" Height="81" />
                <my:Key x:Name="key39" Width="48" Height="81" />
            </StackPanel>-->
        </StackPanel>
    </Canvas>


</UserControl>
